{% extends "emp_base.html" %}
{% block head %}<title>更新员工</title>{% endblock %}
{% block body %}
    <!-- 主体部分 -->
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">
                <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
                更新员工
            </h3>
        </div>
        <div class="panel-body">
            <form class="form-horizontal" method="post" novalidate>
                {% csrf_token %}
                {% for field in form %}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">
                            {{ field.label }}
                        </label>
                        <div class="col-sm-8">
                            {{ field }}{{ field.errors.0 }}
                        </div>
                    </div>
                {% endfor %}
                <input type="hidden" name="id" value="{{ udp_id }}">
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-success">更 新</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}